package domian;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Vip {
    private Integer id;//主键
    private Integer uid;//用户id
    private Integer vipStatus;//vip状态,0(没有vip)/1(有vip)
    private Date openingTime;//vip开通时间
    private Date maturityTime;//vip到期时间

    public Vip(Integer uid, Date openingTime, Date maturityTime) {
        this.uid = uid;
        this.openingTime = openingTime;
        this.maturityTime = maturityTime;
    }

    public Vip(Integer uid, Integer vipStatus, Date openingTime, Date maturityTime) {
        this.uid = uid;
        this.vipStatus = vipStatus;
        this.openingTime = openingTime;
        this.maturityTime = maturityTime;
    }
}
